package cn.tedu.scc.mapper;

import cn.tedu.scc.entity.Member;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MemberMapper {

    @Select("select * from member")
    List<Member> select();

    @Insert("insert into member values(null,#{name})")
    void insert(String name);

    @Delete("delete from member where id=#{id}")
    void deleteById(int id);
}
